<template>
  <div>
    <van-button type="primary">主要按钮</van-button>

    <van-rate v-model="value" />

    <van-switch v-model="checked" />
  </div>
</template>

<script>

// 按需导入：哪里用就哪里导入
// import vanButton from 'vant/lib/button';
// import 'vant/lib/button/style';


// import vanRate from 'vant/lib/rate';
// import 'vant/lib/rate/style';


export default {

  // components: {
  //   vanButton,
  //   vanRate
  // },

  data() {
    return {
      value: 0,
      checked: true
    };
  },
}
</script>

<style>

</style>